<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="menuItemList.title"/></title>
    <meta name="heading" content="<fmt:message key='menuItemList.heading'/>"/>
    <meta name="menu" content="Contenido"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editMenuItem.html"/>'"
        value="<fmt:message key="button.add"/>"/>
    
    <input type="button" onclick="location.href='<c:url value="/main.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="menuItems" value="menuItems" scope="request"/>
<display:table name="menuItems" class="table" requestURI="" id="menuItemList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editMenuItem.html" 
        paramId="id" paramProperty="id" titleKey="menuItem.id"/>
    <display:column property="name" sortable="true" titleKey="menu.Name"/>
    
    <display:setProperty name="paging.banner.item_name" value="menuItem"/>
    <display:setProperty name="paging.banner.items_name" value="menuItems"/>

    <display:setProperty name="export.excel.filename" value="MenuItems List.xls"/>
    <display:setProperty name="export.csv.filename" value="MenuItems List.csv"/>
    <display:setProperty name="export.pdf.filename" value="MenuItems List.pdf"/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("menuItemList");
</script>